import { Toast } from 'vant';

Toast.allowMultiple();

export function showError(message) {
    Toast.fail(message);
}

export function showSuccess(message) {
    Toast.success(message);
}

export function showLoading(message) {
    return Toast.loading({
        message,
        duration: 0,
    })
}

export function hideLoading(loading) {
    loading.clear()
}